using System;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
using System.Collections.Generic;
using System.Collections;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
using SumGam.Globals;
using SumGam.Structs;
using SumGam.Classes;
namespace SumGam
{
    public static class Drawing
    {
        public static void DrawBox(Rectangle Dimensions, int BorderWidth, Color BGColor, Color BorderColor)
        {
            Rendering.spriteBatch.Draw(Textures.BlankTexture, Dimensions, BGColor);
            if (BorderWidth > 0)
            {
                Vector2 TopLeft = new Vector2(Dimensions.X, Dimensions.Y);
                Vector2 TopRight = new Vector2(Dimensions.X + Dimensions.Width, Dimensions.Y);
                Vector2 BottomLeft = new Vector2(Dimensions.X, Dimensions.Y + Dimensions.Height);
                Rendering.spriteBatch.Draw(Textures.BlankTexture, new Rectangle((int)TopLeft.X, (int)TopLeft.Y, Dimensions.Width, BorderWidth), BorderColor);
                Rendering.spriteBatch.Draw(Textures.BlankTexture, new Rectangle((int)TopLeft.X, (int)TopLeft.Y, BorderWidth, Dimensions.Height), BorderColor);
                Rendering.spriteBatch.Draw(Textures.BlankTexture, new Rectangle((int)BottomLeft.X, (int)BottomLeft.Y-BorderWidth, Dimensions.Width, BorderWidth), BorderColor);
                Rendering.spriteBatch.Draw(Textures.BlankTexture, new Rectangle((int)TopRight.X - BorderWidth, (int)TopRight.Y, BorderWidth, Dimensions.Height), BorderColor);
            }
        }
    }
}